//
//  LoginViewController.swift
//  YeKa
//
//  Created by Gina on 15/10/14.
//  Copyright © 2015年 Gina. All rights reserved.
//

import UIKit

class LoginViewController: UIViewController {

    @IBOutlet weak var wbLoginBtn: UIButton!
    override func viewDidLoad() {
        super.viewDidLoad()
        
        wbLoginBtn.layer.masksToBounds = true
        wbLoginBtn.layer.cornerRadius = 16
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "关闭", style: UIBarButtonItemStyle.Plain, target: self, action: "goHome")
        
    }
    
    // 回到主界面
    func goHome(){
        tabBarController?.selectedIndex = 0
    }

    // 打开微博的授权页面
    @IBAction func wbLogin(sender: AnyObject) {
        
        SinaLoginOC.sinaLogin()
        
        
    }
    
    
    
}
